ruff: xpidl/header.py: Use `elif` instead of `else` then `if`, to reduce indentation
Categories
(Core :: XPCOM, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: Sylvestre, Assigned: giulianoverrando, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [lang=python])
Attachments
(1 file)
Filling as a good first bug to learn workflows.
Use elif
instead of else
then if
, to reduce indentation
https://searchfox.org/mozilla-central/source/xpcom/idl-parser/xpidl/header.py#85-89
https://searchfox.org/mozilla-central/source/xpcom/idl-parser/xpidl/header.py#149
As the change is trivial, it is just to learn how to contribute to Firefox.
Found by https://docs.astral.sh/ruff/rules/collapsible-else-if/
Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html
Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.
Reporter | ||
Updated•7 months ago
|
Assignee | ||
Comment 1•6 months ago
|
||
Updated•6 months ago
|
Updated•6 months ago
|
Comment 2•5 months ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Comment 3•2 months ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:giulianoverrando, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Updated•2 months ago
|
Comment 5•2 months ago
|
||
bugherder |
Reporter | ||
Updated•2 months ago
|
Reporter | ||
Updated•2 months ago
|
Description
•